home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 16878 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  840 b 

  1. Path: news.ipf.net!news
  2. From: Lutz Vieweg <lkv@barbar.isg.de>
  3. Newsgroups: comp.lang.c++,gnu.g++.help,comp.sys.hp.hpux
  4. Subject: Re: Help needed on creating shared libraries on HP UX
  5. Date: Fri, 12 Apr 1996 16:47:07 +0200
  6. Organization: Innovative Software GmbH
  7. Message-ID: <316E6CEB.61E5@barbar.isg.de>
  8. References: <4kk0gb$9r4@caesar.ultra.net>
  9. NNTP-Posting-Host: barbar.isg.de
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=us-ascii
  12. Content-Transfer-Encoding: 7bit
  13. X-Mailer: Mozilla 3.0b2 (X11; I; HP-UX B.10.01 9000/770)
  14.  
  15. Khatau wrote:
  16.  
  17. > I compiled the c++ source using GNU's g++ on HP UX. When I tried to link
  18. > the object files using HP UX's CC, to create a shared library
  19.  
  20. This is not a good idea. Instead, use "gcc -fpic -shared ..."
  21. to create shared libs. And remember to compile all object files
  22. with "-fpic"...
  23.  
  24. cu, Lutz Vieweg
  25.